namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("WORKFLOW_TEMPLATE")]
    public partial class WORKFLOW_TEMPLATE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public WORKFLOW_TEMPLATE()
        {
            CONTRACT_INFO = new HashSet<CONTRACT_INFO>();
            LMS_TESTDATA_AUDIT = new HashSet<LMS_TESTDATA_AUDIT>();
            PLAN_PRODUCTION = new HashSet<PLAN_PRODUCTION>();
            PLAN_PURCHASE = new HashSet<PLAN_PURCHASE>();
            PLAN_TEMPPURCHASE = new HashSet<PLAN_TEMPPURCHASE>();
            S_SAMPLE_CHECK = new HashSet<S_SAMPLE_CHECK>();
            WORKFLOW_AUDITDETAIL = new HashSet<WORKFLOW_AUDITDETAIL>();
            WORKFLOW_DETAIL = new HashSet<WORKFLOW_DETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string TEMPLATE_ID { get; set; }

        [StringLength(50)]
        public string TEMPLATE_NAME { get; set; }

        public DateTime? TEMPLATE_TIME { get; set; }

        [StringLength(20)]
        public string TEMPLATE_CODE { get; set; }

        public short? VALITE_TIME_LEN { get; set; }

        [StringLength(200)]
        public string TEMPLATE_REMARK { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_INFO> CONTRACT_INFO { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<LMS_TESTDATA_AUDIT> LMS_TESTDATA_AUDIT { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PRODUCTION> PLAN_PRODUCTION { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PURCHASE> PLAN_PURCHASE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_TEMPPURCHASE> PLAN_TEMPPURCHASE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<S_SAMPLE_CHECK> S_SAMPLE_CHECK { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<WORKFLOW_AUDITDETAIL> WORKFLOW_AUDITDETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<WORKFLOW_DETAIL> WORKFLOW_DETAIL { get; set; }
    }
}
